package com.example.materialdesigndemo;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;


import androidx.appcompat.app.AppCompatActivity;

/***
 * 1.使用ARouter
 * 2.问题：MainActivity不能跳转到bottom中的MainActivity。不论是使用ARouter还是不使用，都不行
 */
public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.text).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //Intent intent = new Intent(MainActivity.this, com.example.projectdemo.NavActivity.class);
                //startActivity(intent);
            }
        });
        findViewById(R.id.text).setOnLongClickListener(new View.OnLongClickListener() {
            @Override
            public boolean onLongClick(View v) {
                //Intent intent = new Intent(MainActivity.this, com.example.projectdemo.NavActivity.class);
                //startActivity(intent);
                return true;
            }
        });
    }
}